import Vue from 'vue'
import VueRouter from 'vue-router'
import LoginView from '../views/Login.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: LoginView
  },
  {
    path: '/village',
    name: 'village',
    component: () => import('../views/cjq-vue/village/village.vue')
  },
  {
    path: '/villageAdd',
    name: 'villageAdd',
    component: () => import('../views/cjq-vue/village/village_add.vue')
  },
  {
    path: '/villageUpdate',
    name: 'villageUpdate',
    component: () => import('../views/cjq-vue/village/village_update.vue')
  },
  {
    path: '/home',
    name: 'home',
    component: () => import('../views/Home.vue'),
    children: [
      {
        path:'/textVue',
        meta: { title: 'textVue' },
        component:() => import('../views/textVue.vue')
      },
      {
        path:'/visit',
        meta: { title: 'visit' },
        component:() => import('../views/ZX-IKUN/Visit.vue')
      },
      {
        path:'/reportForRepair',
        meta: { title: 'reportForRepair' },
        component:() => import('../views/ZX-IKUN/ReportForRepair.vue')
      },
      {
        path:'/activity',
        meta: { title: 'activity' },
        component:() => import('../views/ZX-IKUN/Activity.vue')
      },
      {
        path:'/notice',
        meta: { title: 'notice' },
        component:() => import('../views/ZX-IKUN/Notice.vue')
      },
      {
        path:'/posts',
        meta: { title: 'posts' },
        component:() => import('../views/Posts.vue')
      },
      {
        path:'/comment',
        meta: { title: 'comment' },
        component:() => import('../views/Comment.vue')
      },
      {
        path:'/report',
        meta: { title: 'report' },
        component:() => import('../views/Report.vue')
      },
      {
        path:'/FacilityPublic',
        meta: { title: 'FacilityPublic' },
        component:() => import('../views/Facility/FacilityPublic.vue')
      },
      {
        path:'/FacilityClassify',
        meta: { title: 'FacilityClassify' },
        component:() => import('../views/Facility/FacilityClassify.vue')
      },
      {
        path:'/FacilityMaintainer',
        meta: { title: 'FacilityMaintainer' },
        component:() => import('../views/Facility/FacilityMaintainer.vue')
      },
      {
        path:'/Slideshow',
        meta: { title: 'Slideshow' },
        component:() => import('../views/System/slideshow.vue')
      },
      {
        path:'/DetailsLog',
        meta: { title: 'DetailsLog' },
        component:() => import('../views/System/DetailsLog.vue')
      },
      {
        path:'/ComplaintType',
        meta: { title: 'ComplaintType' },
        component:() => import('../views/System/ComplaintType.vue')
      },
      {
        path:'/Message',
        meta: { title: 'Message' },
        component:() => import('../views/System/Message.vue')
      },
      {
        path:'/Staffs',
        meta: { title: 'Staffs' },
        component:() => import('../views/System/Staffs.vue')
      },
      {
        path:'/area',
        meta: { title: 'area' },
        component:() => import('../views/park/area.vue')
      },
      {
        path:'/vehicle',
        meta: { title: 'vehicle' },
        component:() => import('../views/park/vehicle.vue')
      },
      {
        path:'/carport',
        meta: { title: 'carport' },
        component:() => import('../views/park/carport.vue')
      },
      {
        path:'/monthCard',
        meta: { title: 'monthCard' },
        component:() => import('../views/park/monthCard.vue')
      },
      {
        path:'/payFees',
        meta: { title: 'payFees' },
        component:() => import('../views/park/payFees.vue')
      },
      {
        path:'/bill',
        meta: { title: 'bill' },
        component:() => import('../views/rates/bill.vue')
      },
      {
        path:'/charge',
        meta: { title: 'charge' },
        component:() => import('../views/rates/charge.vue')
      },
      {
        path:'/instrument',
        meta: { title: 'instrument' },
        component:() => import('../views/rates/instrument.vue')
      },
      {
        path:'/approver',
        meta: { title: 'approver' },
        component:() => import('../views/park/approver.vue')
      },
      {
        path:'/passApprover',
        meta: { title: 'passApprover' },
        component:() => import('../views/park/passApprover.vue')
      },
      {
        path:'/rejectApprover',
        meta: { title: 'rejectApprover' },
        component:() => import('../views/park/rejectApprover.vue')
      },
      {
        path:'/reporting',
        meta: { title: 'reporting' },
        component:() => import('../views/rates/reporting.vue')
      },
      {
        path:'/workbench',
        meta: { title: '工作台' },
        component:() => import('../views/cjq-vue/workbench/workbench.vue')
      },
      {
        path:'/userInfo',
        meta: { title: '个人信息' },
        component:() => import('../views/cjq-vue/workbench/userInfo.vue')
      },
      {
        path:'/household',
        meta: { title: '住户管理' },
        component:() => import('../views/cjq-vue/household/household.vue')
      },
      {
        path:'/householdAdd',
        meta: { title: '住户信息添加' },
        component:() => import('../views/cjq-vue/household/household_add.vue')
      },
      {
        path:'/householdUpdate',
        meta: { title: '住户信息修改' },
        component:() => import('../views/cjq-vue/household/household_update.vue')
      },
      {
        path:'/examine',
        meta: { title: '住户信息审核' },
        component:() => import('../views/cjq-vue/household/examine.vue')
      },
      {
        path:'/building',
        meta: { title: '楼座列表展示' },
        component:() => import('../views/cjq-vue/building/building.vue')
      },
      {
        path:'/buildingAdd',
        meta: { title: '楼座信息添加' },
        component:() => import('../views/cjq-vue/building/building_add.vue')
      },
      {
        path:'/buildingUpdate',
        meta: { title: '楼座信息修改' },
        component:() => import('../views/cjq-vue/building/building_update.vue')
      },
      {
        path:'/house',
        meta: { title: '房屋信息列表展示' },
        component:() => import('../views/cjq-vue/house/house.vue')
      },
      {
        path:'/houseAdd',
        meta: { title: '房屋信息添加' },
        component:() => import('../views/cjq-vue/house/house_add.vue')
      },
      {
        path:'/houseUpdate',
        meta: { title: '房屋信息修改' },
        component:() => import('../views/cjq-vue/house/house_update.vue')
      },
      {
        path:'/houseView',
        meta: { title: '房屋信息详情' },
        component:() => import('../views/cjq-vue/house/house_view.vue')
      },
      {
        path:'/locker',
        meta: { title: '储物室信息列表展示' },
        component:() => import('../views/cjq-vue/locker/locker.vue')
      },
      {
        path:'/lockerAdd',
        meta: { title: '储物室信息添加' },
        component:() => import('../views/cjq-vue/locker/locker_add.vue')
      },{
        path:'/lockerUpdate',
        meta: { title: '储物室信息修改' },
        component:() => import('../views/cjq-vue/locker/locker_update.vue')
      },{
        path:'/unit',
        meta: { title: '单元信息列表展示' },
        component:() => import('../views/cjq-vue/unit/unit.vue')
      },
      {
        path:'/Menu',
        meta: { title: '菜单' },
        component:() => import('../views/Menu.vue')
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
